package cn.iocoder.yudao.module.system.controller.admin.tenant.vo.product;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 系统产品 Response VO")
@Data
@ExcelIgnoreUnannotated
public class TenantProductRespVO {

    @Schema(description = "产品id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26129")
    @ExcelProperty("产品id")
    private Long id;

    @Schema(description = "产品类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer type;

    @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    private String productName;

    @Schema(description = "产品编号")
    private String productCode;

    @Schema(description = "额度")
    private Integer totalNum;
    @Schema(description = "已用")
    private Integer usedNum;
    @Schema(description = "剩余")
    private Integer remainNum;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "有效期")
    private Integer expireTime;


    @Schema(description = "有效期至")
    private LocalDateTime expireAt;


    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;


    private Long ownerUserId;

    private String ownerUsername;

}